package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.LmTelemetry;
import com.ruoyi.system.mapper.LmTelemetryMapper;
import com.ruoyi.system.service.ILmTelemetryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class LmTelemetryServiceImpl implements ILmTelemetryService {

    @Autowired
    private LmTelemetryMapper telemetryMapper;


    @Override
    public List<LmTelemetry> getAdminList(Integer page, Integer limit, String name, Integer status) {
        return telemetryMapper.getAdminList(name, status);
    }

    @Override
    public LmTelemetry selectTaskTypeById(Integer id) {
        return telemetryMapper.selectTaskTypeById(id);
    }

    @Override
    public int insertTaskType(LmTelemetry telemetry) {
        return telemetryMapper.insertTaskType(telemetry);
    }

    @Override
    public int updateTaskType(LmTelemetry telemetry) {
        return telemetryMapper.updateTaskType(telemetry);
    }

    @Override
    public int deleteTaskTypeById(Integer id) {
        return telemetryMapper.deleteTaskTypeById(id);
    }
}
